use log::{info};
mod beauty_env_logger;
mod cli;
use cli::cli_args;
use cli::read_json;
fn main() {
    // 调用 beauty_logger 的 init 函数初始化日志
    beauty_env_logger::init();

    let args = cli_args::get_args();

    match args.command {
        cli_args::Commands::Init { config } => {
            match config{
                cli_args::ConfigCommands::Ftrace{debug,add_event,delete_event} => {
                    info!("获取配置，debug模式: {}", debug);
                    info!("添加ftrace event成功: {:?}", add_event);
                    info!("删除ftrace event成功: {:?}", delete_event);
                }
                cli_args::ConfigCommands::Simpleperf{debug} => {
                    info!("获取配置，debug模式: {}", debug);
                }
                cli_args::ConfigCommands::Output{output} => {
                    info!("数据将会存在 {}", output);
                }
            }
        }
        cli_args::Commands::Get { debug } => {
            info!("获取配置，debug模式: {}", debug);
        }
        cli_args::Commands::Run { debug } => {
            info!("获取配置，debug模式: {}", debug);
        }
    }
    read_json::read_json();
}
